JavaScript
A5.ControlBarpopulate Method
Syntax
A5.ControlBar.populate(data[,animation[,fireEvent[,delayRender]]])
Arguments
- dataobject
Data for the control bar.
- animationbooleanstringobject
What animation to perform. To not animate pass in false. If a string is passed in the value of the string is assumed to be the name of the animation to do. If an object is passed in it must conform to the control bar animation object. See A5.ControlBar Animation Object.
- fireEventboolean
Whether or not to fire the populate events.
- delayRenderboolean
Whether or not to delay the refresh of the control bar. This is useful if other code may also refresh the control bar and it is desirable to only have one refresh occur.
Description
Populate the control bar with new data.
Example
// assume cbObj is a pointer to an instance of A5.ControlBar var data = {title: 'Page 2', btnNextDisabled: true}; // change the "title" variable to "Page 2" and set the value of "btnNextDisabled" to true cbObj.populate(data,{ type: 'slide-right', duration: 600 }); // populate the control bar and slide the new control bar to from left to right over .6 seconds